﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/TravelIndex.master" CodeBehind="ConsultarPaquetes.aspx.vb" Inherits="CondorTravel.ConsultarPaquetes" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %>    

<asp:Content ID="Content1" ContentPlaceHolderID="contenidoModulo" runat="server">
    <div id="titulo">Administrar Paquetes</div>

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>

<form name="frmConsultarPaquetes" method="post" id="frmConsultarPaquetes">

<p>En esta sección Ud. podrá buscar los paquetes existentes para realizar las gestiones del mismo. Asimismo podrá crear un nuevo 
    paquete.</p>
<div class="subtitulo"></div>
	
	<table style="WIDTH: 70%" cellspacing="0" cellpadding="0" border="0">
	<tbody>
		<tr class="TRlist3">
			<td colspan="5"><strong><u>Información de Paquetes</u></strong></td>
		</tr>
		<tr class="TRlist3">
			<td style="HEIGHT: 16px;width">Nombre Paquete</td>
			<td colspan="2">
                <asp:TextBox ID="txtDesPaquete" runat="server" Width="270px" MaxLength="50"></asp:TextBox>
            </td>
			<td style="HEIGHT: 16px; width: 200px">&nbsp;Servicio</td>
            <td style="HEIGHT: 16px">
				<asp:DropDownList ID="cboServicio" runat="server" Height="17px" Width="143px">
                </asp:DropDownList>
&nbsp;</td>
		</tr>		
		<tr class="TRlist3">
			<td style="WIDTH: 98px; HEIGHT: 24px">Proveedor</td>
			<td colspan="2">               
				<asp:DropDownList ID="cboProveedor" runat="server" Height="16px" Width="181px">
                </asp:DropDownList>
&nbsp;</td>
			<td>&nbsp;</td>
			<td>
                &nbsp;<asp:DropDownList ID="cboEstado" runat="server" Height="17px" 
                    Width="143px" Visible="False">
                </asp:DropDownList>
            </td>
		</tr>
		<tr class="TRlist3">
			<td style="WIDTH: 98px">Inivio Vigencia</td>
			<td style="WIDTH: 270px" colspan="2">                
                <asp:TextBox ID="txtInicio" runat="server"></asp:TextBox>
                <img id="imgDesde" src="../../res/img/calendar.jpg" style="cursor:pointer"/>
                 <asp:calendarextender ID="cle1" TargetControlID="txtInicio"
                    runat="server" Format="dd/MM/yyyy" PopupButtonID="imgDesde" StartDate="01/01/2000">
                </asp:calendarextender> 

            </td>
			<td>Fin Vigencia</td>
            <td>
                <asp:TextBox ID="txtFin" runat="server"></asp:TextBox>
                <img id="imgHasta" src="../../res/img/calendar.jpg" style="cursor:pointer"/>
                  <asp:calendarextender ID="cle2" TargetControlID="txtFin" 
                    runat="server" Format="dd/MM/yyyy" PopupButtonID="imgHasta" StartDate="01/01/2000">
                </asp:calendarextender>
            </td>
		</tr>		
		<tr>
			<td style="WIDTH: 98px; HEIGHT: 30px"></td>
			<td style="WIDTH: 270px; HEIGHT: 30px" colspan="2">&nbsp;&nbsp;&nbsp;
				<input name="txtCodigo" type="text" value="0" id="txtCodigo" style="color:Transparent;background-color:Transparent;border-color:Transparent;border-style:None;width:0px;">
				<input name="txtTipoCli" type="text" value="Prospecto" id="txtTipoCli" style="color:Transparent;background-color:Transparent;border-color:Transparent;border-style:None;width:0px;">&nbsp;
                  <asp:Button ID="btnNuevo" class="graybutton" runat="server" Text="Nuevo" Width="79px" />
            </td>
			<td style="HEIGHT: 30px">
                <asp:Button ID="btnConsultar" class="graybutton" runat="server" Text="Consultar" Width="70px" />
            </td>
			<td style="HEIGHT: 30px">
				&nbsp;</td>
		</tr>
		
	</tbody>
	</table>
	<span id="lblError" class="lblError"></span><p></p>
<p>
    <asp:GridView ID="dgPaquetes" runat="server" 
        AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField DataField="CodPaquete" HeaderText="Código" />
            <asp:BoundField DataField="NombrePaquete" HeaderText="Paquete" />
            <asp:BoundField DataField="InicioVigencia" HeaderText="Inicio Vigencia" />
            <asp:BoundField DataField="FinVigencia" HeaderText="Fin Vigencia" />
            <asp:BoundField DataField="Estado" HeaderText="Estado" />
            <asp:TemplateField HeaderText="Editar">
                <ItemTemplate>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                         <asp:ImageButton ID="ImagenEditar1" runat="server" 
                        CommandArgument='<%#Eval("CodPaquete")%>' 
                        CommandName="Editar" Height="19px" ImageUrl="~/res/img/icono_editar.gif" 
                        Width="16px" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Eliminar">
                <ItemTemplate>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:ImageButton ID="imgEliminar" runat="server" 
                        CommandArgument='<%#Eval("CodPaquete")%>' 
                        CommandName="Eliminar" Height="19px" ImageUrl="~/res/img/icono_eliminar.gif" 
                        Width="16px" />
                     <asp:ConfirmButtonExtender TargetControlID="imgEliminar" ID="confBtnDelete"  
                        ConfirmText="¿Esta seguro que desea eliminar?" runat="server">
                    </asp:ConfirmButtonExtender>                
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</p>
<p>&nbsp;</p>
</form>
</asp:Content>
